package com.cmccgz.udacs_landlord_webapp.main.unlock;

import android.content.Intent;

import com.cmccgz.baselibrary.base.BaseActivity;
import com.cmccgz.udacs_landlord_webapp.R;

/**
 * @author: June
 * @Descripion:
 * @date 2017/6/7 15:42
 */

public class BtUnlockActivity extends BaseActivity {


    private BtUnlockFragment btUnlockFragment;

    @Override
    protected int setLayoutId() {
        return 0;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initFragment() {
        btUnlockFragment = (BtUnlockFragment) fragmentManager.findFragmentById(R.id.contentFrame);
        if (btUnlockFragment == null) {
            btUnlockFragment = BtUnlockFragment.newInstance();
            showFragment(btUnlockFragment);
        }
        new BtUnlockPresenter(btUnlockFragment);

    }

    @Override
    protected void beforePermission() {

    }

    @Override
    protected int setSystemBarColorId() {
        return 0;
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        btUnlockFragment.onActivityResult(requestCode, resultCode, data);
        super.onActivityResult(requestCode, resultCode, data);
    }
}
